ca83c38ecb1b040446ccc0491702e3930b4db681,src/com/android/settings/datausage/AppDataUsage.java,AppDataUsage,updatePrefs,#boolean#boolean#,286

Before Change


            mRestrictBackground.setChecked(!restrictBackground);
        }
        if (mUnrestrictedData != null) {
            if (restrictBackground) {
                mUnrestrictedData.setVisible(false);
            } else {
                mUnrestrictedData.setVisible(true);
                mUnrestrictedData.setChecked(unrestrictData);

After Change


                getAppRestrictAllData(), getAppRestrictAllWifi());
    }

    private void updatePrefs(boolean restrictBackground, boolean unrestrictData,
            boolean restrictAllData, boolean restrictAllWifi) {
        if (mRestrictBackground != null) {
            if (restrictAllData) {
                mRestrictBackground.setEnabled(false);
                mRestrictBackground.setChecked(false);
            } else {
                mRestrictBackground.setEnabled(true);
                mRestrictBackground.setChecked(!restrictBackground);
            }
        }
        if (mUnrestrictedData != null) {
            if (restrictAllData || restrictBackground) {
                mUnrestrictedData.setEnabled(false);
                mUnrestrictedData.setChecked(false);
            } else {
                mUnrestrictedData.setEnabled(true);
                mUnrestrictedData.setChecked(unrestrictData);
            }
        }

        if (mRestrictAllData != null) {
            mRestrictAllData.setChecked(restrictAllData);
        }
        if (mRestrictAllWifi != null) {
            mRestrictAllWifi.setChecked(restrictAllWifi);